<template>
  <div>
    <!-- 会员中心 -->
    <div class="top">为账户{{user.username}}购买会员</div>
    <div class="topContent">
      <van-cell style="font-size: 18px;padding-top: 15px;" title="会员特权" value="会员说明" is-link to="vipDescription" />
      <div class="vip_detail">
        <div class="vipcard_img" style="display: inline-block;width: 80px;height: 100px;">
          <img src="../assets/vipcard.png" style="width: 80px;height: 100px;">
        </div>
        <div class="vip_right">
          <div style="font-size: 16px;">减免配送费</div>
          <div style="font-size: 14px;color: silver;">每月减免30单,每日可减免3单,每单最高减4元,蜂鸟专送专享</div>
        </div>
      </div>
      <div class="vip_detail">
        <div class="vipcard_img" style="display: inline-block;width: 80px;height: 100px;">
          <img src="../assets/vipcard.png" style="width: 80px;height: 100px;">
        </div>
        <div class="vip_right">
          <div style="font-size: 16px;">减免配送费</div>
          <div style="font-size: 14px;color: silver;">每月减免30单,每日可减免3单,每单最高减4元,蜂鸟专送专享</div>
        </div>
      </div>
    </div>
    <van-cell style="font-size: 18px;padding-top: 15px;" title="开通会员" />
    <van-cell style="font-size: 18px;padding-top: 15px;" title="1个月 ￥20" value="购买"/>
    <van-cell style="font-size: 18px;padding-top: 15px;margin-top: 20px;" title="兑换会员" value="使用卡号卡密" is-link to="" />
    <van-cell style="font-size: 18px;padding-top: 15px;margin-top: 20px;" title="购买记录" value="开发票" is-link to="" />

  </div>
</template>
<script>
  export default {
    name: 'vipcard',
    data: function () {
      return {
        user: [],
      }
    },
    created() {
      this.$store.commit("changeTitle", "会员中心");
      var user = JSON.parse(sessionStorage.getItem('user'));
      this.user = user;
    },
  }
</script>

<style lang="less" scoped>
  .top {
    text-align: left;
    font-size: 16px;
    /* no */
    padding: 10px;
    /* no */
  }

  .topContent {
    margin-bottom: 30px;
  }

  .van-cell {
    height: 100px;
  }

  .van-cell__title {
    text-align: left;
  }

  .vip_detail {
    width: 100%;
    height: 100px;
    /* no */
    background-color: rgb(255, 255, 255);
    border-bottom: 1px silver solid;
    text-align: left;
    position: relative;

  }

  .vip_right {
    width: 60%;
    height: 100px;
    background-color: rgb(255, 255, 255);
    display: inline-block;
    position: absolute;
    top: 40px;
  }

  .van-cell__value {
    padding-top: 5px;
  }
</style>